package com.neu.elm.mapper;

import com.neu.elm.po.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author:csw
 * @Date: 10:36 2020/9/15
 */
@Mapper
public interface BusinessMapper {

    //按照不同的点餐分类，返回商家集合
    @Select("select * from business where orderTypeId=#{orderTypeId} order by businessId")
    public List<Business> listBusinessByOrderTypeId(Integer orderTypeId);

    //按照商家id查询单体商家
    @Select("select * from business where businessId=#{businessId}")
    public Business getBusinessById(Integer businessId);

    //






}
